package com.example.administrator.yuejian_2.interservice;

import com.example.administrator.yuejian_2.bean.ActivityCollectBean;
import com.example.administrator.yuejian_2.bean.ActivityOrderListBean;
import com.example.administrator.yuejian_2.bean.ClubCollectBean;
import com.example.administrator.yuejian_2.bean.ContestCollectBean;
import com.example.administrator.yuejian_2.bean.MasterCollectBean;
import com.example.administrator.yuejian_2.bean.MessageBean;
import com.example.administrator.yuejian_2.bean.TrainCollectBean;
import com.example.administrator.yuejian_2.bean.TrainOrderListBean;
import com.example.administrator.yuejian_2.bean.UserDetailBean;
import com.example.administrator.yuejian_2.bean.trainorderBean;
import com.example.administrator.yuejian_2.bean.UserBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/27.
 */

public interface UserDetailService {
    @POST("user/userdetail")
    Call<UserDetailBean> detail(@Query("u_id") int user_id);

    @POST("user/usertrainorder")
    Call<trainorderBean> usertrainorder(@Query("u_id") int user_id);

    @POST("user/update")
    Call<UserBean> update(@Query("u_id") int user_id,
                          @Query("u_name") String u_name,
                          @Query("u_pass") String u_pass,
                          @Query("tel") String tel,
                          @Query("email") String email);
    @POST("user/traincollectlist")
    Call<List<TrainCollectBean>> traincollectlist(@Query("u_id") int user_id);

    @POST("user/trainorderlist")
    Call<List<TrainOrderListBean>> trainorderlist(@Query("u_id") int user_id);

    @POST("user/clubcollectlist")
    Call<List<ClubCollectBean>> clubcollectlist(@Query("u_id") int user_id);

    @POST("user/activitycollectlist")
    Call<List<ActivityCollectBean>> activitycollectlist(@Query("u_id") int user_id);

    @POST("user/mastercollectlist")
    Call<List<MasterCollectBean>> mastercollectlist(@Query("u_id") int user_id);

    @POST("user/contestcollectlist")
    Call<List<ContestCollectBean>> contestcollectlist(@Query("u_id") int user_id);

    @POST("user/messagelist")
    Call<List<MessageBean>> messagelist();

    @POST("user/messagedetail")
    Call<MessageBean> messagedetail(@Query("message_id") int message_id);

    @POST("user/activityorderlist")
    Call<List<ActivityOrderListBean>> activityorderlist(@Query("u_id") int user_id);



}
